package com.visikard.item;

import java.io.Serializable;

import org.json.JSONObject;

import com.visikard.application.Constant;

public class ItemRTUICoupon implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private long id;
	private String name;
	private String title;
	private String filename;
	private String merchant_id;
	private String address;
	private String expire_date;
	private String store;
	private String city;
	private String zip;
	private String state;
	private String lat;
	private String lng;
	private String phone;
	private String number;
	private String status;
	private String catid;
	private String category_title;
	private String alias;
	private String link;

	public ItemRTUICoupon() {
	}

	public ItemRTUICoupon(JSONObject job) {
		if (job == null)
			return;

		id = job.optLong("id", Constant.INVALID_ID);
		name = job.optString("name", "");
		if (name == null || name.equals("null"))
			name = "";
		title = job.optString("title", "");
		if (title == null || title.equals("null"))
			title = "";
		filename = job.optString("filename", "");
		if (filename == null || filename.equals("null"))
			filename = "";
		merchant_id = job.optString("merchant_id", "");
		if (merchant_id == null || merchant_id.equals("null"))
			merchant_id = "";
		address = job.optString("address", "");
		if (address == null || address.equals("null"))
			address = "";
		expire_date = job.optString("expire_date", "");
		if (expire_date == null || expire_date.equals("null"))
			expire_date = "";
		store = job.optString("store", "");
		if (store == null || store.equals("null"))
			store = "";
		city = job.optString("city", "");
		if (city == null || city.equals("null"))
			city = "";
		zip = job.optString("zip", "");
		if (zip == null || zip.equals("null"))
			zip = "";
		state = job.optString("state", "");
		if (state == null || state.equals("null"))
			state = "";
		lat = job.optString("lat", "");
		if (lat == null || lat.equals("null"))
			lat = "";
		lng = job.optString("lng", "");
		if (lng == null || lng.equals("null"))
			lng = "";
		phone = job.optString("phone", "");
		if (phone == null || phone.equals("null"))
			phone = "";
		number = job.optString("number", "");
		if (number == null || number.equals("null"))
			number = "";
		status = job.optString("status", "");
		if (status == null || status.equals("null"))
			status = "";
		catid = job.optString("catid", "");
		if (catid == null || catid.equals("null"))
			catid = "";
		category_title = job.optString("category_title", "");
		if (category_title == null || category_title.equals("null"))
			category_title = "";
		alias = job.optString("alias", "");
		if (alias == null || alias.equals("null"))
			alias = "";
		link = job.optString("link", "");
		if (link == null || link.equals("null"))
			link = "";
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getMerchantId() {
		return merchant_id;
	}

	public void setMerchantId(String merchant_id) {
		this.merchant_id = merchant_id;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getExpireDate() {
		return expire_date;
	}

	public void setExpireDate(String expire_date) {
		this.expire_date = expire_date;
	}

	public String getStore() {
		return store;
	}

	public void setStore(String store) {
		this.store = store;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public String getLng() {
		return lng;
	}

	public void setLng(String lng) {
		this.lng = lng;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCatid() {
		return catid;
	}

	public void setCatid(String catid) {
		this.catid = catid;
	}

	public String getCategoryTitle() {
		return category_title;
	}

	public void setCategoryTitle(String category_title) {
		this.category_title = category_title;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

}
